package com.yegs.jltqc.dao;

import com.yegs.jltqc.VO.BaseUser;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface BaseUserRepository extends JpaRepository<BaseUser,Long> {

    BaseUser findBaseUserByUsernameAndPassword(String username, String password);

    BaseUser findBaseUserByCodeAndPassword(String code, String password);

    Page<BaseUser> findBaseUserByUsername(String username, Pageable pageable);

    BaseUser findBaseUserByUsername(String username);

    BaseUser findBaseUserByCode(String code);

}
